import React, { Component } from 'react'
import { connect } from 'react-redux'
import {
  TitleWrapper,
  TitleItem
} from '../style' 

class Title extends Component {
  render() {
    return (
      <TitleWrapper>
        <TitleItem className='is-active'>推荐</TitleItem>
        <TitleItem>关注</TitleItem>
        <TitleItem>热榜</TitleItem>
      </TitleWrapper>
    )
  }
}
const mapState = (state) => {
  return {
    count: state.getIn(['home', 'demoData'])
  }
}

export default connect(mapState, null)(Title)